package org.lanqiao.dao;

import org.lanqiao.entity.Wxuser;
import org.lanqiao.mapper.UserMapper;
import org.lanqiao.mapper.WxuserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class WxuserDao {
    @Autowired
    WxuserMapper wxuserMapper;


    /**
     * @Author 王宇
     * @Description //TODO 查询单个用户
     * @Date 2019/06/11 9:30
     * @Param [wxId]
     * @return org.lanqiao.entity.Wxuser
     */
    public Wxuser getWxUser(String wxId){

        return wxuserMapper.getWxUser(wxId);
    }


/**
     * @Author 徐金星
     * @Description //TODO新增微信用户
     * @Date 2019/6/12 15:25
     * @Param [wxuser]
     * @explain
     * @return void
     */
    public void addWxUser(Wxuser wxuser){
        wxuserMapper.addWxUser(wxuser);
    }
    /**
     * @Author 李玉鑫
     * @Description //TODO
     * @Date 微信用户金额修改 20:00
     * @Param 
     * @return 
     *
     */
    public void updateNumber(String wxUserId,double wxUserBalance){
        System.out.println(wxUserId+"--"+wxUserBalance);
        wxuserMapper.updateNumber(wxUserId,wxUserBalance);
    }


}
